<cfparam name="f" default="docs">
<cfparam name="dir" default="/">
<cfif fileexists('#request.adminpath##f##dir##url.filename#')>
<cffile action="delete" file="#request.adminpath##f##dir##url.filename#">
</cfif>
<cfinvoke component="cfcs.common.shared" method="redirect" url="index.cfm?c=admindocs&a=default&f=#f#&dir=#dir#" msg="Page deleted." />